/**
 * Copyright (c) 2009 by lane.cn@gmail.com
 * All rights reserved.
 */
package com.googlecode.shapeline.util;

import java.util.UUID;

/**
 * 唯一编码生成工具
 * @author 陆海涛
 */
public class Guid {
	/**
	 * 空编码
	 */
	public static final String EMPTY = "00000000-0000-0000-0000-000000000000";
	
	/**
	 * 构造函数
	 */
	private Guid() {
	}

	/**
	 * 生成新编码
	 * @return
	 */
	public static String newGuid() {
		UUID uuid = UUID.randomUUID();
		return uuid.toString().toLowerCase();
	}
}
